import { Preset } from 'unocss'

export const common: Preset = {
  name: 'common',
  /** 自定义预设 */
  rules: [
    ['ellipsis', { 'overflow': 'hidden', 'text-overflow': 'ellipsis', 'white-space': 'nowrap'}],
    /** 伪元素样式写在了index.scss */
    ['kch-title', { 'color': '#333', 'font-size': '14px', 'font-weight': '600', 'height': '40px', 'display': 'flex', 'align-items': 'center' }],
  ],
  /** 缩写,  */
  shortcuts: [
    {'fcc': 'flex justify-center items-center'},
    {'section-title': 'block pt-2 pb-1 font-600 font-size-3.5'},
    /** 只读文本 */
    {'text-readonly': 'c-[var(--van-cell-value-color)]'},
  ],
}